<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <<title>FormValidator</title>
</head>

<body>
    <div class="container">
        <form id="form" class="form">
            <h2>用户注册</h2>
            <div class="form-control">
                <label for="username">用户名</label>
                <input type="text" id="username" placeholder="输入用户名" />
                <small>错误用户名</small>
            </div>

            <div class="form-control">
                <label for="Email">邮箱</label>
                <input type="text" id="email" placeholder="输入邮箱" />
                <small>错误邮箱</small>
            </div>

            <div class="form-control">
                <label for="password">密码</label>
                <input type="password" id="password" placeholder="输入密码" />
                <small>错误密码</small>
            </div>

            <div class="form-control">
                <label for="password2">确认密码</label>
                <input type="password" id="password2" placeholder="再次输入密码" />
                <small>错误确认</small>
            </div>

            <button type="submit">提交</button>
        </form>
    </div>

    <script src="script.js"></script>
</body>

</html>
